from django.urls import path, re_path
from rest_framework_simplejwt.views import TokenObtainPairView, TokenRefreshView, TokenVerifyView

from user.views import SmsLoginApiView,SmsCodeView

urlpatterns = [
    path('token/', TokenObtainPairView.as_view()),
    path('refresh/', TokenRefreshView.as_view()),
    path('verify/', TokenVerifyView.as_view()),
    path('login/', SmsLoginApiView.as_view()),
    re_path(r'^sms/(?P<phone>1[3-9]\d{9})/$', SmsCodeView.as_view()),
]
